﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Globalization;
using Negocio;
using Modelo;

namespace Interfaces
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class BitFoodPrincipal : Window
    {
        public BitFoodPrincipal()
        {
            InitializeComponent();
            
        }

        private void InicializarBotón()
        {
           /* if (ControladorPrincipal.EsSabadoODomingo())
                buttonGenerarLista.IsEnabled = true;
            else
                buttonGenerarLista.IsEnabled = false;*/
        }
        
        
        private void button1_Click(object sender, RoutedEventArgs e)
        {
            IUMenuDiario menuDiario = new IUMenuDiario();
            menuDiario.ShowDialog();
        }

        private void button2_Click(object sender, RoutedEventArgs e)
        {
            IUMenuSemanal a = new IUMenuSemanal();
            a.ShowDialog();
        }

        private void button3_Click(object sender, RoutedEventArgs e)
        {
            IUAgregarProducto a = new IUAgregarProducto();
            a.ShowDialog();
        }

        private void buttonGenerarLista_Click(object sender, RoutedEventArgs e)
        {
            
        }

        private void button4_Click(object sender, RoutedEventArgs e)
        {
            IUListaProductos lista = new IUListaProductos();
            lista.ShowDialog();
        }

        private void button5_Click(object sender, RoutedEventArgs e)
        {
            IURegistrarReceta receta = new IURegistrarReceta();
            receta.ShowDialog();
        }

        private void buttonUsadas_Click_1(object sender, RoutedEventArgs e)
        {
            IURecetasUsadas re = new IURecetasUsadas();
            re.ShowDialog();

        }

        private void buttonListaDiaria_Click(object sender, RoutedEventArgs e)
        {
         
        }

        private void buttonListaComprasFecha_Click(object sender, RoutedEventArgs e)
        {
            }

        private void btnRecetas_Click(object sender, RoutedEventArgs e)
        {
            Recetas recetas = new Recetas();
            recetas.ShowDialog();
        }

        private void Registrar_click(object sender, RoutedEventArgs e)
        {
            IURegistrarReceta registrar = new IURegistrarReceta();
            registrar.ShowDialog();
        
        }
        private void Agregar_click(object sender, RoutedEventArgs e)
        {
            IUAgregarProducto registrar = new IUAgregarProducto();
            registrar.ShowDialog();

        }

        private void MenuItem_Click(object sender, RoutedEventArgs e)
        {

        }
        private void RegistrarReceta_Click(object sender, RoutedEventArgs e)
        {

            IURegistrarReceta registrar = new IURegistrarReceta();
            registrar.ShowDialog();

        }
        private void EditarProducto_Click(object sender, RoutedEventArgs e)
        {
            IUListaProductos lista = new IUListaProductos();
            lista.ShowDialog();
   
        }
        private void EditarReceta_Click(object sender, RoutedEventArgs e)
        {
            Recetas recetas = new Recetas();
            recetas.ShowDialog();
        }

        private void MenuItem_Click_1(object sender, RoutedEventArgs e)
        {
            this.Close();
        }

        private void image2_MouseEnter(object sender, MouseEventArgs e)
        {
            label1.Visibility = Visibility.Visible;
        }

        private void image2_MouseLeave(object sender, MouseEventArgs e)
        {
            label1.Visibility = Visibility.Hidden;
        }

        private void image3_MouseEnter(object sender, MouseEventArgs e)
        {
            label2.Visibility = Visibility.Visible;
        
        }

        private void image3_MouseLeave(object sender, MouseEventArgs e)
        {
            label2.Visibility = Visibility.Hidden;
        
        }

        private void image1_MouseEnter(object sender, MouseEventArgs e)
        {
            label3.Visibility = Visibility.Visible;
        
        }

        private void image1_MouseLeave(object sender, MouseEventArgs e)
        {
            label3.Visibility = Visibility.Hidden;
        
        }

        private void image2_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            IUListaCompras lista = new IUListaCompras();
            lista.ShowDialog();

        }

        private void image3_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            IUListaCompras listaDiaria = new IUListaCompras(DateTime.Now.Date);
            listaDiaria.buttonAgregarListaDiaria.Visibility = Visibility.Hidden;
            listaDiaria.label1.Content = "Hoy tienes que comprar: ";
            listaDiaria.ShowDialog();

        }

        private void image1_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            IUListaDiariaPorFecha lista = new IUListaDiariaPorFecha();
            lista.ShowDialog();
        
        }


    }
}
